package com.cbwl.eoas.cms.service.impl.eoas;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cbwl.eoas.cms.api.eoas.IAppMessageInfoService;
import com.cbwl.eoas.cms.dao.eoas.IAppMessageInfoDao;
import com.cbwl.eoas.cms.model.eoas.AppMessageInfoDTO;
import com.cbwl.eoas.common.base.BaseServiceImpl;
import com.cbwl.eoas.common.framework.vo.PageRequest;


/**
 * 
 * <p>[描述信息：AppMessageInfoDAO接口]</p>
 *
 * @author 虞云波 - yuyunbo@3856.cc
 * @version 1.0 Created on 2017年10月12日 下午13:29:23
 */
@Service("appMessageInfoService")
public class AppMessageInfoServiceImpl  extends BaseServiceImpl<AppMessageInfoDTO>  implements IAppMessageInfoService  {

	
	@Autowired
	private IAppMessageInfoDao appMessageInfoDao;
	
	/**
	 * 
	 * <p>分页查询，app端接口</p>
	 * 
	 * @see com.cbwl.eoas.cms.api.eoas.IAppMessageInfoService#queryAppMessageList(com.cbwl.eoas.common.framework.vo.PageRequest)
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年11月7日 上午11:42:25
	 */
	@Override
	public List<AppMessageInfoDTO> queryAppMessageList(PageRequest pageRequest) {
		int page = pageRequest.getPage();
		int rows = pageRequest.getRows();
		
		page =(page-1)*rows;
		pageRequest.setPage(page);
		return appMessageInfoDao.queryAppMessageList(pageRequest);
	}
	
	
	
		
	
}
